package com.bnyy.health.bean;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/8/30
 **/
public class BloodPressureWeekly implements Serializable {

    private int id;
    private String start_datetime;
    private String end_datetime;
    private int status;
    private String official_qrcode;
    private String official_title;
    private String warm_prompt;
    private String hwr_bg_img;
    private Detail hwr_detail;
    private int hq_status;
    private boolean readOnly;
    private boolean share;
    private Tips hwr_phrase;

    public Tips getHwr_phrase() {
        return hwr_phrase;
    }

    public void setHwr_phrase(Tips hwr_phrase) {
        this.hwr_phrase = hwr_phrase;
    }

    public boolean isReadOnly() {
        return readOnly;
    }

    public void setReadOnly(boolean readOnly) {
        this.readOnly = readOnly;
    }

    public boolean isShare() {
        return share;
    }

    public void setShare(boolean share) {
        this.share = share;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStart_datetime() {
        return start_datetime;
    }

    public void setStart_datetime(String start_datetime) {
        this.start_datetime = start_datetime;
    }

    public String getEnd_datetime() {
        return end_datetime;
    }

    public void setEnd_datetime(String end_datetime) {
        this.end_datetime = end_datetime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getOfficial_qrcode() {
        return official_qrcode;
    }

    public void setOfficial_qrcode(String official_qrcode) {
        this.official_qrcode = official_qrcode;
    }

    public String getOfficial_title() {
        return official_title;
    }

    public void setOfficial_title(String official_title) {
        this.official_title = official_title;
    }

    public String getWarm_prompt() {
        return warm_prompt;
    }

    public void setWarm_prompt(String warm_prompt) {
        this.warm_prompt = warm_prompt;
    }

    public String getHwr_bg_img() {
        return hwr_bg_img;
    }

    public void setHwr_bg_img(String hwr_bg_img) {
        this.hwr_bg_img = hwr_bg_img;
    }

    public Detail getHwr_detail() {
        return hwr_detail;
    }

    public void setHwr_detail(Detail hwr_detail) {
        this.hwr_detail = hwr_detail;
    }

    public int getHq_status() {
        return hq_status;
    }

    public void setHq_status(int hq_status) {
        this.hq_status = hq_status;
    }

    public static class Detail implements Serializable {

        private int id;
        private WarnDetail blood_press_warn;
        private DoctorInfo doctor_info;
        private Stats general_info;
        private ArrayList<Trend> day_trend;
        private ArrayList<Range> day_scope;
        private BloodPressureMaxAndMin blood_press_range;

        public BloodPressureMaxAndMin getBlood_press_range() {
            return blood_press_range;
        }

        public void setBlood_press_range(BloodPressureMaxAndMin blood_press_range) {
            this.blood_press_range = blood_press_range;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public WarnDetail getBlood_press_warn() {
            return blood_press_warn;
        }

        public void setBlood_press_warn(WarnDetail blood_press_warn) {
            this.blood_press_warn = blood_press_warn;
        }

        public DoctorInfo getDoctor_info() {
            return doctor_info;
        }

        public void setDoctor_info(DoctorInfo doctor_info) {
            this.doctor_info = doctor_info;
        }

        public Stats getGeneral_info() {
            return general_info;
        }

        public void setGeneral_info(Stats general_info) {
            this.general_info = general_info;
        }

        public ArrayList<Trend> getDay_trend() {
            return day_trend;
        }

        public void setDay_trend(ArrayList<Trend> day_trend) {
            this.day_trend = day_trend;
        }

        public ArrayList<Range> getDay_scope() {
            return day_scope;
        }

        public void setDay_scope(ArrayList<Range> day_scope) {
            this.day_scope = day_scope;
        }

        public static class BloodPressureMaxAndMin implements Serializable {

            private BloodPressureRange high, low;

            public BloodPressureRange getHigh() {
                return high;
            }

            public void setHigh(BloodPressureRange high) {
                this.high = high;
            }

            public BloodPressureRange getLow() {
                return low;
            }

            public void setLow(BloodPressureRange low) {
                this.low = low;
            }
        }

        /**
         * 预警
         */
        public static class WarnDetail implements Serializable {
            /**
             * daytime : {"high":{"count":0,"desc":"超过150-100mmHg"},"low":{"count":0,"desc":"超过90-60mmHg"}}
             * night : {"high":{"count":0,"desc":"超过140-90mmHg"},"low":{"count":0,"desc":"超过85-55mmHg"}}
             */

            private When daytime, night;

            public When getDaytime() {
                return daytime;
            }

            public void setDaytime(When daytime) {
                this.daytime = daytime;
            }

            public When getNight() {
                return night;
            }

            public void setNight(When night) {
                this.night = night;
            }

            public static class When implements Serializable {
                /**
                 * high : {"count":0,"desc":"超过150-100mmHg"}
                 * low : {"count":0,"desc":"超过90-60mmHg"}
                 */

                private Element high, low;

                public Element getHigh() {
                    return high;
                }

                public void setHigh(Element high) {
                    this.high = high;
                }

                public Element getLow() {
                    return low;
                }

                public void setLow(Element low) {
                    this.low = low;
                }

                public static class Element implements Serializable {
                    /**
                     * count : 0
                     * desc : 超过150-100mmHg
                     */

                    private int count;
                    private String desc;

                    public int getCount() {
                        return count;
                    }

                    public void setCount(int count) {
                        this.count = count;
                    }

                    public String getDesc() {
                        return desc;
                    }

                    public void setDesc(String desc) {
                        this.desc = desc;
                    }
                }
            }

        }

        /**
         * 医生建议
         */
        public static class DoctorInfo implements Serializable {

            private String content;
            private String img;
            private String month;
            private String name;
            private String brief;
            private ArrayList<String> tags;

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getBrief() {
                return brief;
            }

            public void setBrief(String brief) {
                this.brief = brief;
            }

            public ArrayList<String> getTags() {
                return tags;
            }

            public void setTags(ArrayList<String> tags) {
                this.tags = tags;
            }

            public String getMonth() {
                return month;
            }

            public void setMonth(String month) {
                this.month = month;
            }
        }

        /**
         * 统计
         */
        public static class Stats implements Serializable {

            private int grade; // 评分
            private int count; // 测量次数
            private int high_count; // 高危次数
            private int side_high_count; // 正常偏高次数
            private int normal_count; // 正常次数
            private int side_low_count; // 偏低次数

            public int getGrade() {
                return grade;
            }

            public void setGrade(int grade) {
                this.grade = grade;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public int getHigh_count() {
                return high_count;
            }

            public void setHigh_count(int high_count) {
                this.high_count = high_count;
            }

            public int getSide_high_count() {
                return side_high_count;
            }

            public void setSide_high_count(int side_high_count) {
                this.side_high_count = side_high_count;
            }

            public int getNormal_count() {
                return normal_count;
            }

            public void setNormal_count(int normal_count) {
                this.normal_count = normal_count;
            }

            public int getSide_low_count() {
                return side_low_count;
            }

            public void setSide_low_count(int side_low_count) {
                this.side_low_count = side_low_count;
            }
        }

        /**
         * 血压趋势
         */
        public static class Trend implements Serializable {

            private int high_value;
            private int low_value;
            private String create_datetime;

            public int getHigh_value() {
                return high_value;
            }

            public void setHigh_value(int high_value) {
                this.high_value = high_value;
            }

            public String getCreate_datetime() {
                return create_datetime;
            }

            public void setCreate_datetime(String create_datetime) {
                this.create_datetime = create_datetime;
            }

            public int getLow_value() {
                return low_value;
            }

            public void setLow_value(int low_value) {
                this.low_value = low_value;
            }
        }

        /**
         * 血压范围
         */
        public static class Range implements Serializable {

            private BloodPressureRange high, low;
            private String create_datetime;

            public BloodPressureRange getHigh() {
                return high;
            }

            public void setHigh(BloodPressureRange high) {
                this.high = high;
            }

            public BloodPressureRange getLow() {
                return low;
            }

            public void setLow(BloodPressureRange low) {
                this.low = low;
            }

            public String getCreate_datetime() {
                return create_datetime;
            }

            public void setCreate_datetime(String create_datetime) {
                this.create_datetime = create_datetime;
            }

        }
    }

    public static class Tips implements Serializable {
        private String b_phrase, grey_phrase;

        public String getB_phrase() {
            return b_phrase;
        }

        public void setB_phrase(String b_phrase) {
            this.b_phrase = b_phrase;
        }

        public String getGrey_phrase() {
            return grey_phrase;
        }

        public void setGrey_phrase(String grey_phrase) {
            this.grey_phrase = grey_phrase;
        }
    }
}

